package com.erms.lab.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.erms.lab.mapper.LabMajorEightMapper;
import com.erms.lab.domain.LabMajorEight;
import com.erms.lab.service.ILabMajorEightService;
import com.erms.common.core.text.Convert;

/**
 * 专业机房八Service业务层处理
 * 
 * @author smile
 * @date 2020-05-04
 */
@Service
public class LabMajorEightServiceImpl implements ILabMajorEightService 
{
    @Autowired
    private LabMajorEightMapper labMajorEightMapper;

    /**
     * 查询专业机房八
     * 
     * @param equipId 专业机房八ID
     * @return 专业机房八
     */
    @Override
    public LabMajorEight selectLabMajorEightById(Long equipId)
    {
        return labMajorEightMapper.selectLabMajorEightById(equipId);
    }

    /**
     * 查询专业机房八列表
     * 
     * @param labMajorEight 专业机房八
     * @return 专业机房八
     */
    @Override
    public List<LabMajorEight> selectLabMajorEightList(LabMajorEight labMajorEight)
    {
        return labMajorEightMapper.selectLabMajorEightList(labMajorEight);
    }

    /**
     * 新增专业机房八
     * 
     * @param labMajorEight 专业机房八
     * @return 结果
     */
    @Override
    public int insertLabMajorEight(LabMajorEight labMajorEight)
    {
        return labMajorEightMapper.insertLabMajorEight(labMajorEight);
    }

    /**
     * 修改专业机房八
     * 
     * @param labMajorEight 专业机房八
     * @return 结果
     */
    @Override
    public int updateLabMajorEight(LabMajorEight labMajorEight)
    {
        return labMajorEightMapper.updateLabMajorEight(labMajorEight);
    }

    /**
     * 删除专业机房八对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deleteLabMajorEightByIds(String ids)
    {
        return labMajorEightMapper.deleteLabMajorEightByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除专业机房八信息
     * 
     * @param equipId 专业机房八ID
     * @return 结果
     */
    @Override
    public int deleteLabMajorEightById(Long equipId)
    {
        return labMajorEightMapper.deleteLabMajorEightById(equipId);
    }
}
